package cn.crm.service.impl;

import cn.crm.dao.CstLostDao;
import cn.crm.dao.CstServiceDao;
import cn.crm.pojo.CstLost;
import cn.crm.pojo.CstService;
import cn.crm.service.CstLostService;
import cn.crm.service.CstServiceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)//事务回滚
@Service
public class CstServiceServiceImpl extends ServiceImpl<CstServiceDao, CstService> implements CstServiceService {
    @Autowired
    private CstServiceDao cstServiceDao;
    @Override
    public List<CstService> getCount() {
        return cstServiceDao.getCount();
    }
}
